package com.conan.array.exer1;/** * @version 加油！！！ * @Description * @Author 谷藤新一GYC * @Date 2023/7/29-9:38 */public class ArrayTest6 {    public static void main(String[] args) {        int [] arr = new int[]{5,4,6,8,9,0,1,2,7,3};        int sum = 0;        int max = 0;        int min = 0;        for(int i = 0;i < arr.length;i++){            sum += arr[i];            if(max < arr[i]){                max = arr[i];            }            if(min > arr[i]){                min = arr[i];            }        }        System.out.println("选手最后得分是"+(sum-max-min)/(arr.length-2));    }}   